package zju.xmsx.acm.search.back.dto;

import lombok.Data;

@Data
public class MessageResponse {
    private boolean success;
    private String info;
    private Object data;

    public MessageResponse(){
        success = false;
        info = "";
        data = null;
    }

    public MessageResponse(boolean state, String info) {
        success = state;
        this.info = info;
    }

    public MessageResponse(boolean state, String mess, Object res){
        success = state;
        info = mess;
        data = res;
    }
}
